import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { Task } from '../entity/task.entity';
import { BaseService } from './base.service';

@Injectable()
export class Taskervice extends BaseService<Task> {
  constructor(
    @InjectRepository(Task)
    private readonly taskRepository: Repository<Task>,
  ) {
    super(taskRepository);
  }

  async findAll(id): Promise<Task[]> {
    return await this.taskRepository.findByIds(id);
  }
}
